import cn.hutool.crypto.digest.MD5;
import cn.hutool.json.JSONUtil;
import com.app.dao.UserDao;
import com.app.pojo.FileListResult;
import com.app.pojo.Status;
import com.app.utils.FileUtils;
import com.app.utils.Judges;
import com.bby.Settings;
import org.junit.Test;

import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.text.DateFormat;
import java.text.ParseException;
import java.util.*;
import java.util.regex.Pattern;

public class TestApp {
    public static void main(String[] args) {
        File file = new File("D:\\bbyCloudDisk\\tempFiles\\1633693341013-简历-王本银.pdf");

        File []files=new File[17];
        for (int i=0;i<17;++i)files[i]=new File(file,""+i);
//        Arrays.sort(files, Comparator.comparingInt(n -> Integer.parseInt(n.getName())));
        for (File f:files) System.out.println(f);
    }
    public static boolean deleteDir(File file){
        if (file==null||!file.exists()) return false;
        if (!file.delete()){
            for (File f: Objects.requireNonNull(file.listFiles()))
                if (!file.delete())
                    if (!deleteDir(f)) return false;
            return file.delete();
        }
        return !file.exists();
    }
}
